#ifndef _MY_DISPLAY_H
#define _MY_DISPLAY_H

#include "Adafruit_SH1106.h"
#include "MAX31865/MyTemperature.h"

class MyDisplay
{
private:
    uint16_t raw_all[SENSER_QUANTITY];
    double temperature_all[SENSER_QUANTITY];
    Adafruit_SSD1306 *_display;

    void displayRun();
    void displaySetOthers();

    void displayRaw();
    void displayTemperature();
    void displayCN(int x, int y, const unsigned char *CN, int start, int length);

public:
    MyDisplay(void);
    ~MyDisplay();
    enum display_mode
    {
        MODE_RUN,
        MODE_SET_OTHER,
        MODE_END
    };

    double otherTemperature;

    void display(uint8_t mode);
    void welcome();
    void setData(uint8_t senserNumber, uint16_t raw, double temperature);
};

#endif